//
//  AlertViewTableViewCell.m
//  HappyBug
//
//  Created by liulei on 2018/11/6.
//  Copyright © 2018年 www.hc.com.cn. All rights reserved.
//

#import "AlertViewTableViewCell.h"
#import "Person.h"
@implementation AlertViewTableViewCell{
    Person *p;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self= [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        
        [self initview];
    }
    return  self;
}

-(void)initview{
    _txtLabel=[[UILabel alloc]init];
    _txtLabel.frame=CGRectMake(20, 0, 100, 50);
    _txtLabel.text=@"11111";
    _txtLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_txtLabel];
    
    self.showImage =[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"select"]];
    self.showImage.frame=CGRectMake(self.frame.size.width-70,10, 25, 25);
    [self addSubview:self.showImage];
}
//
//-(void)layoutSubviews{
//    [super layoutSubviews];
//
//
//
//}
-(void)setValueWithArray:(NSObject *)obj{
    p=(Person *)obj;
    _txtLabel.text=p.name;
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
